﻿/*
 * 经济机构机构人员表
 *
 */

using Abp.Domain.Entities.Auditing;
using SOEI.Solution.Customized;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using static SOEI.Solution.AppCoreConst;

namespace SOEI.Solution.DomainEntities.Organization
{
    /// <summary>
    /// 经济机构表
    /// </summary>
    [Table("ORGANIPERSONS")]
    public class OrganiPerson : AuditedEntity<long>
    {

        #region -------------------------------------------------实体属性---------------------------------------------- 
        ///<summary>
        /// 姓名
        ///</summary>
        [MaxLength(EntityLength.Length64)]
        public string Name { get; set; }

        ///<summary>
        /// 性别
        ///</summary>
        public EPersonSex Sex { get; set; }

        ///<summary>
        /// 手机号
        ///</summary>
        [MaxLength(EntityLength.Length14)]
        public string PhoneNumber { get; set; }

        ///<summary>
        /// 证件号码
        ///</summary>
        [MaxLength(EntityLength.Length64)]
        public string IDNumber { get; set; }

        ///<summary>
        /// 经纪人资格证号
        ///</summary>
        [MaxLength(EntityLength.Length64)]
        public string CertificateCode { get; set; }

        ///<summary>
        /// 原始库中的机构编号
        ///</summary>
        [MaxLength(EntityLength.Length6)]
        public string JGBH { get; set; }

        ///<summary>
        /// 经济机构编号
        ///</summary>
        public long OrganizeID { get; set; }

        /// <summary>
        /// 机构人员类型（对接老系统 CLFWQ_CS_RYLX）
        /// </summary>
        [MaxLength(EntityLength.Length6)]
        public string PersonType { get; set; }

        /// <summary>
        /// 备注信息
        /// </summary>
        [Description("备注信息")]
        public string Remark { get; set; }

        #endregion

        #region -------------------------------------------------用户定义---------------------------------------------- 


        #endregion

        #region -------------------------------------------------状态控制---------------------------------------------- 
        ///<summary>
        ///资质申请情况
        ///</summary>
        public EApplyStatus ApplyStatus { get; set; }

        /// <summary>
        /// 人员&资料状态
        /// </summary>
        public EDataStatus DataStatus { get; set; }

        ///<summary>
        /// 审批状态码
        ///</summary>
        public EApprovalStatus ApprovalStatus { get; set; }

        #endregion

        #region -------------------------------------------------导航属性---------------------------------------------- 


        #endregion

        #region -------------------------------------------------扩展属性---------------------------------------------- 

        /// <summary>
        /// 
        /// </summary>
        [NotMapped]
        public string PersonTypeName { get; set; }
        #endregion
    }
}
